package site.zhouinfo.designpattern.guanchazhemoshi.jdk;

import java.util.Observable;

/**
 * @author zhou
 * @create 2017-04-06 18:57
 * @email zhouinfo@qq.com
 */
public class JdkNewsPaper extends Observable {

    private String name;

    private String content;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
        this.setChanged();
        this.notifyObservers(content);
        this.notifyObservers();
    }


}
